import request from "@/utils/request.js";

// 获取挂号日期
export function getDate(data) {
  return request.post('bh/register/date',data,{sign:true});
}

// 获取挂号科室
export function getDept(data) {
  return request.post('bh/register/dept',data,{sign:true});
}

// 获取挂号医生
export function getDoctor(data) {
  return request.post('bh/register/doctor',data,{sign:true});
}

// 号源检查
export function sourceCheck(data) {
  return request.post('bh/register/source/check',data,{sign:true});
}

// 创建挂号订单
export function createOrder(data) {
  return request.post('bh/register/create',data,{sign:true});
}

// 预约免费号
export function freeOrder(data) {
  return request.post('bh/register/free',data,{sign:true});
}

// 创建挂号订单
export function regCancel(data) {
  return request.post('bh/register/cancel',data,{sign:true});
}

// 挂号缴费下单
export function dopay(data) {
  return request.post('bh/register/dopay',data,{sign:true});
}

// 查询挂号订单
export function queryOrder(data) {
  return request.post('bh/register/query/order',data,{sign:true});
}

// 挂号记录
export function list(data) {
  return request.post('bh/register/list',data,{sign:true});
}

// 获取就诊记录
export function seeRecord(data) {
  return request.post('bh/register/see-record',data,{sign:true});
}

// 获取候诊信息
export function waitSee(data) {
  return request.post('bh/register/wait-see',data,{sign:true});
}

// 就诊签到
export function signIn(data) {
  return request.post('bh/register/sign-in',data,{sign:true});
}
